package cn.cvs.service.impl;

import cn.cvs.dao.AddressMapper;
import cn.cvs.pojo.Address;
import cn.cvs.service.AddressService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("addressService")
public class AddressServiceImpl implements AddressService {
   // @Autowired
    @Resource
    private AddressMapper addressDao;


    @Override
    public int add(Address address) {
        return addressDao.add(address);
    }

    @Override
    public int delAddress(Integer id) {
        return addressDao.delAddress(id);
    }

    @Override
    public int updAddress(Address address) {
        return addressDao.updAddress(address);
    }
}
